package com.clement.spring.study.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * Created by Clement on 2017/3/2.
 */
@Configuration
//@EnableWebMvc
public class WebConfig extends WebMvcConfigurerAdapter {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/html/**").addResourceLocations("classpath:META-INF/pages/**/");
        registry.addResourceHandler("/**").addResourceLocations("classpath:META-INF/resources/angular/src/","classpath:META-INF/resources/angular/");

        super.addResourceHandlers(registry);
    }
}
